/****************************************************************************
** Meta object code from reading C++ file 'pstyledbutton.h'
**
** Created: Sun May 27 02:35:54 2007
**      by: The Qt Meta Object Compiler version 59 (Qt 4.2.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../pstyledbutton.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'pstyledbutton.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59
#error "This file was generated using the moc from 4.2.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

static const uint qt_meta_data_PStyledButton[] = {

 // content:
       1,       // revision
       0,       // classname
       0,    0, // classinfo
       2,   10, // methods
       5,   20, // properties
       0,    0, // enums/sets

 // slots: signature, parameters, type, tag, flags
      24,   15,   14,   14, 0x0a,
      50,   42,   14,   14, 0x0a,

 // properties: name, type, flags
      72,   67, 0x01095103,
      92,   87, 0x03095003,
     107,   99, 0x41095103,
     124,   99, 0x41095003,
     135,   87, 0x03095103,

       0        // eod
};

static const char qt_meta_stringdata_PStyledButton[] = {
    "PStyledButton\0\0disabled\0setDisabled(bool)\0enabled\0setEnabled(bool)\0"
    "bool\0adjustToPixmap\0uint\0states\0QPixmap\0firstStatePixmap\0"
    "maskPixmap\0startState\0"
};

const QMetaObject PStyledButton::staticMetaObject = {
    { &QPushButton::staticMetaObject, qt_meta_stringdata_PStyledButton,
      qt_meta_data_PStyledButton, 0 }
};

const QMetaObject *PStyledButton::metaObject() const
{
    return &staticMetaObject;
}

void *PStyledButton::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_PStyledButton))
	return static_cast<void*>(const_cast<PStyledButton*>(this));
    return QPushButton::qt_metacast(_clname);
}

int PStyledButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QPushButton::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: setDisabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        }
        _id -= 2;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = isAdjustToPixmap(); break;
        case 1: *reinterpret_cast< uint*>(_v) = numStates(); break;
        case 2: *reinterpret_cast< QPixmap*>(_v) = getFirstStatePixmap(); break;
        case 3: *reinterpret_cast< QPixmap*>(_v) = maskPixmap(); break;
        case 4: *reinterpret_cast< uint*>(_v) = startState(); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setAdjustToPixmap(*reinterpret_cast< bool*>(_v)); break;
        case 1: setNumStates(*reinterpret_cast< uint*>(_v)); break;
        case 2: setFirstStatePixmap(*reinterpret_cast< QPixmap*>(_v)); break;
        case 3: setMask(*reinterpret_cast< QPixmap*>(_v)); break;
        case 4: setStartState(*reinterpret_cast< uint*>(_v)); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
